package com.yangcangclub.commons.utils;


public class RandomUtil {

    public static String getPasswordOfNumber(int count) {
        return getPassword(count, false, true);
    }

    public static String getPasswordOfCharacter(int count) {
        return getPassword(count, true, false);
    }

    public static String getPassword(int count, boolean letters, boolean numbers) {
        return org.apache.commons.lang.RandomStringUtils.random(count, letters, numbers);
    }
}
